#!/bin/bash

echo -e "\n\033[31m cpu$1当前的工作频率 \033[0m " 
adb shell cat /sys/devices/system/cpu/cpu$1/cpufreq/cpuinfo_cur_freq

echo -e "\n\033[31m cpu$1最高的工作频率 \033[0m " 
adb shell cat /sys/devices/system/cpu/cpu$1/cpufreq/cpuinfo_max_freq

echo -e "\n\033[31m cpu$1最低的工作频率 \033[0m " 
adb shell cat /sys/devices/system/cpu/cpu$1/cpufreq/cpuinfo_min_freq

echo -e "\n\033[31m cpu$1频率切换需要的事件(ns) \033[0m " 
adb shell cat /sys/devices/system/cpu/cpu$1/cpufreq/cpuinfo_transition_latency

echo -e "\n\033[31m cpu$1支持的频率调节策略 \033[0m " 
adb shell cat /sys/devices/system/cpu/cpu$1/cpufreq/scaling_available_governors

echo -e "\n\033[31m cpu$1当前的频率调节策略 \033[0m " 
adb shell cat /sys/devices/system/cpu/cpu$1/cpufreq/scaling_governor

echo -e "\n\033[31m cpu$1当前可设置的频率列表 \033[0m " 
adb shell cat /sys/devices/system/cpu/cpu$1/cpufreq/scaling_available_frequencies
